import { useStorage } from '@vueuse/core'
import { defineStore } from 'pinia'
import { GetConfig, SetConfig } from "../../../wailsjs/go/main/App";
export const useToolsStore = defineStore('toolsStore', () => {

   const GetConfig = async (node,name) => {
     if (window.runtime) {
       return await GetConfig(node,name)
     } else {
      console.log('wails error')
     }
   }
  return {
    GetConfig
  }
})